package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/* 员工实体类 */
@Data // 构建 set get toString 方法
@AllArgsConstructor // 构建 有参构造器
@NoArgsConstructor // 构建 无参构造器
@Component // 声明自己是组件在一部分
public class Employee {
    private int empno;
    private String ename;
    private String job;
    private int mgr;
    private String hiredate;
    private double sal;
    private double comm;
    private int deptno;
}
